package org.hxc.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hxc
 * @date 2024/6/18 16:39
 */
@RestController
@RequestMapping
public class LoginController {
    // 登录界面
    @GetMapping("/api/login")
    public String login() {
        return Thread.currentThread() .getStackTrace()[1].getMethodName();
    }
    // 登录成功界面
    @GetMapping("/loginSuccess")
    public String loginSuccess() {
        return Thread.currentThread() .getStackTrace()[1].getMethodName();
    }
}
